package com.ruoyi.vocationalcollege.service.impl;

import com.ruoyi.vocationalcollege.domain.ExamVocationalCollege;
import com.ruoyi.vocationalcollege.mapper.ExamVocationalCollegeMapper;
import com.ruoyi.vocationalcollege.service.IExamVocationalCollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamVocationalCollegeServiceImpl implements IExamVocationalCollegeService {

    @Autowired
    private ExamVocationalCollegeMapper vocationalCollegeMapper;

    @Override
    public ExamVocationalCollege selectVocationalCollegeById(Long id) {
        return vocationalCollegeMapper.selectVocationalCollegeById(id);
    }

    @Override
    public List<ExamVocationalCollege> selectVocationalCollegeList() {
        return vocationalCollegeMapper.selectVocationalCollegeList();
    }

    @Override
    public int insertVocationalCollege(ExamVocationalCollege vocationalCollege) {
        return vocationalCollegeMapper.insertVocationalCollege(vocationalCollege);
    }

    @Override
    public int updateVocationalCollege(ExamVocationalCollege vocationalCollege) {
        return vocationalCollegeMapper.updateVocationalCollege(vocationalCollege);
    }

    @Override
    public int deleteVocationalCollegeById(Long id) {
        return vocationalCollegeMapper.deleteVocationalCollegeById(id);
    }
}
